<!--<?php
require_once template('config');
echo <<<EOT
-->
{$methtml_head}
<script>
function MetinfoNav(m,p,type){
    m.hover(function(){ 
      overnav($(this),p,type);
  },function(){
      outnav($(this),p,type);
  });
}

function overnav(dom,p,type){
                var my = dom.find('dl');
    if(my.length > 0){
                var myli = my.find('dd');
                var my_w = dom.outerWidth(true) + p;
                var my_h = dom.outerHeight(true);
                var m_h = type==2?"0px":"auto";
                var m_d = type==3?"none":"block"; 
                  my.css({
              "display" : m_d,
              "position" : "absolute",
            "height":m_h,
              "left" : -(p/2),
              "top" : my_h
          }); 
        var liy = myli.outerHeight(true)*myli.length;
          if(type==2){my.animate({ height:liy },200);}
          if(type==3){my.fadeIn("slow");} 
              var tallest = 0;
                  myli.each(function() {
                    thisWdith = $(this).outerWidth(true);
                    if(thisWdith > tallest) {
                      tallest = thisWdith;
                    }
                  });
              var Width = tallest > my_w?tallest:my_w;
            my.css("width",Width);  
          
        } 
}

function outnav(dom,p,type){
    var my = dom.find('dl');
  if(my.length > 0){
       if(type==2){ my.animate({ height:'0px' },200,function(){ my.css("display","none");});}
     if(type!=2){ my.removeAttr("style");}
    my.css("display","none");
  }
}
</script>
<script type="text/javascript">
  $(document).ready(function(){
//导航下拉菜单效果,MetinfoNav($("导航ID或者Class"),导航缺省宽度,1|2|3种效果);
      MetinfoNav($("#nav li.class1"),18,3); 
  });
</script>
<body>
<div id="metinfo">
        <div id="top">
            <div class="floatl" style="padding-top:5px; padding-left:5px;">
            <a href="{$index_url}" title="{$met_webname}" id="web_logo">
              <img src="{$met_logo}" alt="{$met_webname}" title="{$met_webname}" style="margin:{$lang_LogoTop}px 0px 0px {$lang_LogoLeft}px;" />
            </a>
            </div>
            <div class="sidebar floatr">

                <div class="lang">
                   {$metlang}
                    
                </div>
                <h1>{$methtml_now}</h1>
            </div>
            <div class="clear"></div>
        </div>  
        <div id="head">
          <div id="nav">
              <ul>
              <li class="class1"><a href="$index_url" title="{$lang_home}" class="class1" id="nav_10001"><span>{$lang_home}</span></a></li>
<!--
EOT;
$i=0;
foreach($nav_list as $key=>$val){
$i++;
$p=count($nav_list2[$val[id]]);
if($p==0){
echo <<<EOT
-->
<li class="line"></li>
<li class="class1"><a href="$val[url]" $val[new_windows] title="$val[name]" class="class1" id="nav_$val[id]"><span>$val[name]</span></a></li>
<!--
EOT;
}else{
echo <<<EOT
--> 
<li class="line"></li>
<li class="class1" onmouseover="onnav(this,'$val[id]');" onmouseout="outnav(this,'$val[id]');"><a href="$val[url]" $val[new_windows] title="$val[name]" class="class1" id="nav_$val[id]"><span>$val[name]</span></a>
                             <dl id="navul-$val[id]" style="display:none;">
<!--
EOT;
foreach($nav_list2[$val[id]] as $key=>$val2){
echo <<<EOT
-->  
                         <dd><a href="$val2[url]" $val2[new_windows] title="$val2[name]">$val2[name]</a></dd>
<!--
EOT;
}
echo <<<EOT
-->  
                             </dl>  
</li>
<!--
EOT;
}
if($i>=7)break;
}
echo <<<EOT
-->
      </ul>
          </div>
        </div>    
<!--
EOT;
if($classnow==10001){
echo <<<EOT
-->
        <div class="inner met_flash">{$methtml_flash}</div>

<!--
EOT;
}else{
echo <<<EOT
-->
     <div class="inner met_flash">{$methtml_flash}</div>
<!--
EOT;
}
echo <<<EOT
-->

<!--
EOT;
?>